bgo#534462: Disable interactive search in the file chooser's shortcuts pane
authorFederico Mena Quintero <federico@novell.com>
Mon, 27 Jul 2009 22:21:28 +0000 (17:21 -0500)
committerFederico Mena Quintero <federico@novell.com>
Tue, 28 Jul 2009 00:12:41 +0000 (19:12 -0500)
People often do this:
1. Bring up a SAVE dialog
2. Click on a folder in the shortcuts pane
3. Start typing a filename
4. Oops!  The interactive-search entry in the shortcuts pane appears.

With this, the shortcuts pane will not bring up the interactive-search entry.  Then it
will be clear that you are not typing in the right place.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilechooserdefault.c

index bd48cdedccac92403b2293e93cb6cf374f1db18c..1091af402976c41847c90b68dd0582ce25519ef9 100644 (file)
@@ -3883,6 +3883,7 @@ shortcuts_list_create (GtkFileChooserDefault *impl)
   /* Tree */
 
   impl->browse_shortcuts_tree_view = gtk_tree_view_new ();
+  gtk_tree_view_set_enable_search (GTK_TREE_VIEW (impl->browse_shortcuts_tree_view), FALSE);
 #ifdef PROFILE_FILE_CHOOSER
   g_object_set_data (G_OBJECT (impl->browse_shortcuts_tree_view), "fmq-name", "shortcuts");
 #endif